package aiku.numericalcontroloa.Model.Entity.OrderManagement;

import aiku.numericalcontroloa.Model.Entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单产品表
 * @Author 黄广庭
 * @Date 2024/5/7 11:26
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "order_goods")
public class OrderGoods extends BaseEntity implements Serializable {
    /**
     * 订单id
     */
    @TableField(value = "order_id")
    private String orderId;

    /**
     * 产品id
     */
    @TableField(value = "goods_id")
    private String goodsId;

    /**
     * 卖出数量
     */
    @TableField(value = "goods_count")
    private Float goodsCount;

    /**
     * 总金额
     */
    @TableField(value = "total_amount")
    private BigDecimal totalAmount;
}
